package cn.yuli.duck.impl;

import cn.yuli.duck.Duck;
import cn.yuli.fly.Fly;
import cn.yuli.talk.Talk;
/**
 * 肥鸭子类
 * @author yuli
 *
 */
public class FatDuck extends Duck{
	public FatDuck(Fly fly,Talk talk) {
		super(fly, talk);
	}
	/**
	 * 展示鸭子
	 */
	@Override
	public void display() {
		System.out.println("这是一只肥鸭子");
		this.flying();
		this.talking();
	}

}
